package com.sys.db.daoImpl;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.sys.db.dao.LogJobDao;
import com.sys.pojo.LogJob;

public class LogJobDaoImpl extends SqlMapClientDaoSupport implements LogJobDao {

	public void save(LogJob logJob) throws Exception {
		this.getSqlMapClientTemplate().insert("LogJob.insert",logJob);
	}

	public LogJob findById(Integer id) throws Exception {
		LogJob j=(LogJob) this.getSqlMapClientTemplate().queryForObject("LogJob.findById",id);
		return j;
	}

	public void update(LogJob logJob) throws Exception {
		this.getSqlMapClientTemplate().update("LogJob.update",logJob);
	}

}
